probability_log Function

public pure elemental function probability_log(value) result(rst)

Computes a log density or probability with explicit zero handling.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: value

Nonnegative density or probability.

Return Value real(kind=real64)

Natural logarithm; zero gives -infinity, negative or NaN gives NaN.